package cn.webrx.config;

import cn.webrx.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"cn.webrx.pojo"})
public class SpringConfig {
    @Bean(name = "ls")
    public User getUser(){
        var ls = new User();
        ls.setId(66);
        ls.setName("李四四");
        return ls;
    }
}
